package com.liannong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_cart")
public class UserCart {
    @TableId(type = IdType.AUTO)
    private Long cartId;

    @TableField("user_id")
    private Integer userId;
    
    @TableField("product_id")
    private Integer productId;
    
    @TableField("quantity")
    private Integer quantity;
    
    @TableField("selected")
    private Boolean selected;
    
    @TableField("price")
    private BigDecimal price;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
}